﻿<%@ Page Title="" Language="C#" MasterPageFile="~/OuterInfo/OuterInfo.Master" AutoEventWireup="true"
    CodeBehind="OuterInfoDistribute.aspx.cs" Inherits="QuaManSys.OuterInfo.OuterInfoDistribute" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" type="text/css" href="../Css/QuaInfoPro.css" />
    
    <script language="javascript" type="text/javascript" src="../js/upload.js"></script>
    <script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="../CheckBox/checkBoxFunction.js"></script>
    <script language="javascript" type="text/javascript" src="../Search/search.js"></script>
    <script type="text/javascript">
        function checkTime() {
            var fbkt = document.getElementById("<%=fdbktime.ClientID %>").value;
            var clst = document.getElementById("<%=lblCusRT.ClientID %>").value;
            if (fbkt == null || fbkt == "") { alert("请输入反馈时间"); return false; }
            if (clst == null || clst == "") { alert("请输入顾客要求闭环时间"); return false; }
            return true;
        }
        function clickSubmit() {
            var prot = document.getElementById("<%=txtProDL.ClientID %>").value;
            var projNo = document.getElementById("<%=ddlProNo.ClientID %>").value;
            if (prot == null || prot == "") { alert("请输入处理时限"); return false; }
            return confirm("分发后将不能修改，你确定要提交？");
        }


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">    
    <div id="keyWordsDiv" style="border: 2px solid #6FA1D9; display: none; position: absolute;
        top: 0px; left: 0px; width: 260px; height: auto; z-index: 3; background-color: #EAF1FD;">
        <div style="width: 260px; height: 20px; background-color: #6FA1D9">
            <ul style="cursor: pointer; line-height: 20px;">
                <li style="float: left" onclick="getCheckVale('<%=cblKeyWords.ClientID %>', '<%=txtKeyWords.ClientID %>')">
                    [确定]</li>
                <li style="float: right" onclick="closeSelf('<%=cblKeyWords.ClientID %>')">[关闭]</li>
            </ul>
        </div>
        <div>
            <asp:CheckBoxList ID="cblKeyWords" runat="server" RepeatColumns="2" Style="width: 260px">
            </asp:CheckBoxList>
        </div>
    </div>
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="RegistA" runat="server">
        <table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color:#FFFFFF;">
			<caption style="background-color:#FFFFFF;"><asp:Label id="lblQuaInfo" style="font-size: 20px" runat="Server" 
                    Font-Bold="True">质量信息反馈单</asp:Label></caption>
			<tr>
				<td>反馈单位</td>
				<td><asp:TextBox ID="lblFdCom" runat="server"></asp:TextBox></td>
				<td>反馈人</td>
				<td><asp:TextBox ID="txtFdPer" runat="server"></asp:TextBox></td>
				<td>反馈时间</td>
				<td><asp:TextBox ID="fdbktime" runat="server" cssclass="Wdate" onClick="WdatePicker()" ></asp:TextBox></td>
			</tr>
            <tr>
				<td>处理要求</td>
				<td colspan="5">					
                <asp:RadioButtonList ID="ProcssComd" runat="server" CssClass="ddlcolumn" RepeatLayout="Flow" RepeatColumns="3">
                    <asp:ListItem Text="需协调处理">
                    </asp:ListItem>
                    <asp:ListItem Text="已处理，需在后续产品上改进    ">
                    </asp:ListItem>
                    <asp:ListItem Text="已处理，供阅知">
                    </asp:ListItem>
                </asp:RadioButtonList>
                </td>
			</tr>
             <tr>
            <td rowspan="6">顾客信息描述</td>
                <td>顾客公司</td>
                <td colspan="2"><asp:TextBox ID="lblCusCo" runat="server" class="mytd" ></asp:TextBox></td>
                <td>相关公司名称</td>
                <td><asp:TextBox ID="lblRelCo" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>顾客姓名</td>
                <td colspan="2"><asp:TextBox ID="lblCusNam" runat="server" class="mytd"></asp:TextBox></td>
                <td>顾客角色</td>
                <td><asp:TextBox ID="lblCusRol" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>联系方式</td>
                <td colspan="4"><asp:TextBox ID="lblCusTel" runat="server" class="mytd"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        顾客要求闭环时间</td>
                    <td colspan="4">
                        <asp:TextBox ID="lblCusRT" runat="server" style="margin-left:0;margin-right:0; width:100%" CssClass="Wdate" 
                            onclick="WdatePicker()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        顾客对此事态度</td>
                    <td colspan="4">
                        <asp:RadioButtonList ID="CareLevel" runat="server" CssClass="ddlcolumn" 
                            RepeatColumns="3" RepeatLayout="Flow">
                            <asp:ListItem Text="一般">
                        </asp:ListItem>
                            <asp:ListItem Text="关注">
                        </asp:ListItem>
                            <asp:ListItem Text="非常关注">
                        </asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        其他信息</td>
                    <td colspan="4">
                        <asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        质量信息描述</td>
                    <td colspan="5">
                        <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        顾客要求或建议处置方案</td>
                    <td colspan="5">
                        <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        建议后继处理要求</td>
                    <td colspan="5">
                        <asp:RadioButtonList ID="CustmReq" runat="server" RepeatLayout="Flow">
                            <asp:ListItem Text="需从技术方面进一步向顾客说明">
                        </asp:ListItem>
                            <asp:ListItem Text="需从质量管理方面进一步向顾客说明">
                        </asp:ListItem>
                            <asp:ListItem Text="需启动顾客关系修复流程">
                        </asp:ListItem>
                            <asp:ListItem Text="不需要后续处理，请从下面文本框说明">
                        </asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:TextBox ID="instruction" runat="server" class="myTB"></asp:TextBox>
                    </td>                
                </tr>
        </table>     
        <div style=" text-align:center; background-color:#ffffff;">
        <asp:Button ID="nextstep" runat="server" Text="下一步->" OnClick="nextstep_Click" 
            OnClientClick="return checkTime()" BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
                ForeColor="White" />
    </div>
   </asp:View>        
                            
       
    <asp:View ID="View1" runat="server">
    <table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color:#FFFFFF;">
        <caption style="background-color:#FFFFFF;">
            <asp:Label id="lblQuaInfoPro" style="font-size: 20px" runat="Server" Font-Bold="True">质量信息处理表</asp:Label>
        </caption>
        <tr class="noline">
			<td>编号：</td>
			<td colspan ="5"><asp:Label ID="lblQuaInfoProNo" runat="server"></asp:Label></td>				
		</tr>
        <tr>
            <td>信息类别</td>
            <td colspan="3">
                <asp:TextBox ID="txtSearch" name="txtSearch" size="30" class="mytd" onkeyup="searchSuggest('cphInner_txtSearch', this);"
                onfocus="this.className='input_on';this.onmouseout=''" 
                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};" 
                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" runat="server">
                </asp:TextBox><div id="search_suggest" style="display:none"></div>
            </td>
            <td>重要级别</td>
            <td><asp:DropDownList ID="txtImpLev" runat="server" class="mytd">
                <asp:ListItem Text="高"></asp:ListItem>
                <asp:ListItem Text="中"></asp:ListItem>
                <asp:ListItem Text="低"></asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
                <td>机型</td>
                <td><asp:Label ID="txtlblMacTyp" runat="server" Text="txtMacTyp"></asp:Label></td>
                <td>机号</td>
                <td><asp:Label ID="txtlblMacNo" runat="server" Text="Label"></asp:Label></td>
                <td>工程编号</td>
                <td><asp:DropDownList ID="ddlProNo" runat="server" class="mytd" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlProNo_SelectedIndexChanged"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>零部件</td>
                <td colspan="3"><asp:TextBox ID="txtComponent" runat="server" class="mytd"></asp:TextBox></td>
                <td>故障类型</td>
                <td><asp:TextBox ID="txtFaiTyp" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>生产厂家</td>
                <td colspan="5"><asp:TextBox ID="txtManufac" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>项目分类</td>
                <td colspan="2"><asp:TextBox ID="txtPjCls" runat="server" class="mytd"></asp:TextBox></td>
                <td>名称</td>
                <td colspan="2"><asp:TextBox ID="txtPjNam" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>责任部门</td>
                <td colspan="2"><asp:DropDownList ID="ResponDept" runat="server" class="mytd" 
                onselectedindexchanged="ResponDept_SelectedIndexChanged" AutoPostBack="true">
                </asp:DropDownList></td>
                <td>处理时限</td>
                <td colspan="2"><asp:TextBox ID="txtProDL" runat="server" CssClass="Wdate" style="margin-left:0;margin-right:0; width:100%" onclick="WdatePicker()"></asp:TextBox></td>
            </tr>
            <tr>
                <td>关注部门</td>
                <td colspan="5"><asp:TextBox ID="txtKeyWords" runat="server" class="mytd" onclick="locking(this)" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>描述</td>
                <td colspan="5"><asp:TextBox ID="txtInfoDsc" runat="server" class="mytd" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
            <td>信息分类</td>
            <td colspan="5"><asp:RadioButtonList ID="InfoCls" runat="server" RepeatLayout="Flow" RepeatColumns="2" >
                <asp:ListItem Text="已处理（需后继关注）">
                </asp:ListItem>
                <asp:ListItem Text="未处理（需跟踪解决）">
                </asp:ListItem>
            </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td>处理要求和意见</td>
                <td colspan="5"><asp:TextBox ID="txtReqAdv" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>信息处理结果</td>
                <td colspan="5"><asp:TextBox ID="txtReqRsl" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>质量信息处理评价</td>
                <td colspan="5"><asp:TextBox ID="txtProCmm" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
    </table>  
                 
    
    <div style=" text-align:center; background-color:#ffffff;">
        <asp:Button ID="prestep" runat="server" Text="<-上一页" OnClick="prestep_Click" BackColor="#1a5ab8"  
            Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
            ForeColor="White" />
        <asp:Button ID="btnRollback" runat="server" Text="回 退" onclick="btnRollback_Click" OnClientClick="return confirm('你确定要回退？')" BackColor="#1a5ab8"  
            Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
            ForeColor="White"/>
        <asp:Button ID="submit" runat="server" Text="分 发" OnClientClick="return clickSubmit()"
            OnClick="submit_Click" BackColor="#1a5ab8"  
            Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
            ForeColor="White" />
    </div>
                    
    
    
    <asp:Repeater ID="attatch" runat="server" OnItemCommand="OnItemCommand">
    <HeaderTemplate> <table ></HeaderTemplate>
        <ItemTemplate>
        <tr>
            <td><asp:TextBox id="attatchName" ReadOnly="true" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>' runat="server"></asp:TextBox></td>
            <td><asp:Button id="d1" Text="删除" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="delete" OnClientClick="return confirm('确定要删除？');"/></td>
            <td><asp:Button id="d2" Text="下载" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="download"/></td>
        </tr>
           
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <table class="table_bt" cellpadding="2" cellspacing="1">
        <tr class="noline">
            <td>
                <input id="Button_add_fj" onclick="return additem('TABLE_D')" type="button"
                    value="继续添加附件" class="btn_big" style="height:20px;width:60px"  />                                        
            </td>
        </tr>
    </table>
    <input type="hidden" id="hidden" runat="server" value="1"/>

    <table width="100%" class="noline" id="TABLE_D">
        <tr>
            <td>
                   
                <input id="FileUploadD1" type="file" size="40" cssclass="a_search" runat="server" />
                 
               </td> 
               <td> 
                    <input onclick="return deleteitem(this);" type="button" value="删除" style="width:120px" />
                                                    
              </td>
        </tr>
    </table>
    
    </asp:View>
    </asp:MultiView>
</asp:Content>
